package handler

import (
	"ticket-master/models"

	"github.com/gin-gonic/gin"
)

func UserList(c *gin.Context) {

	var user []models.User
	list := models.DB.Find(&user)
	c.JSON(200, gin.H{
		"code":    200,
		"massage": "success",
		"data":    list,
	})
	return
}
